If you pass width or height == 0 to gdk_window_clear_area they should be
authorAlexander Larsson <alexl@redhat.com>
Wed, 29 Nov 2000 13:13:20 +0000 (13:13 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Wed, 29 Nov 2000 13:13:20 +0000 (13:13 +0000)
2000-11-29  Alexander Larsson  <alexl@redhat.com>

* gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
If you pass width or height == 0 to gdk_window_clear_area they
should be calculated from the window size.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/linux-fb/gdkwindow-fb.c

index e52ac1b44c36a287f05b4843723dd3815a2a651d..eb64324102dfc2666e22e180497cc7ce1ee09883 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-11-29  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
+       If you pass width or height == 0 to gdk_window_clear_area they
+       should be calculated from the window size.
+
 2000-11-29  Alexander Larsson  <alexl@redhat.com>
 
        * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
index e52ac1b44c36a287f05b4843723dd3815a2a651d..eb64324102dfc2666e22e180497cc7ce1ee09883 100644 (file)
@@ -1,3 +1,9 @@
+2000-11-29  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
+       If you pass width or height == 0 to gdk_window_clear_area they
+       should be calculated from the window size.
+
 2000-11-29  Alexander Larsson  <alexl@redhat.com>
 
        * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
index e52ac1b44c36a287f05b4843723dd3815a2a651d..eb64324102dfc2666e22e180497cc7ce1ee09883 100644 (file)
@@ -1,3 +1,9 @@
+2000-11-29  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
+       If you pass width or height == 0 to gdk_window_clear_area they
+       should be calculated from the window size.
+
 2000-11-29  Alexander Larsson  <alexl@redhat.com>
 
        * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
index e52ac1b44c36a287f05b4843723dd3815a2a651d..eb64324102dfc2666e22e180497cc7ce1ee09883 100644 (file)
@@ -1,3 +1,9 @@
+2000-11-29  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
+       If you pass width or height == 0 to gdk_window_clear_area they
+       should be calculated from the window size.
+
 2000-11-29  Alexander Larsson  <alexl@redhat.com>
 
        * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
index e52ac1b44c36a287f05b4843723dd3815a2a651d..eb64324102dfc2666e22e180497cc7ce1ee09883 100644 (file)
@@ -1,3 +1,9 @@
+2000-11-29  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
+       If you pass width or height == 0 to gdk_window_clear_area they
+       should be calculated from the window size.
+
 2000-11-29  Alexander Larsson  <alexl@redhat.com>
 
        * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
index e52ac1b44c36a287f05b4843723dd3815a2a651d..eb64324102dfc2666e22e180497cc7ce1ee09883 100644 (file)
@@ -1,3 +1,9 @@
+2000-11-29  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
+       If you pass width or height == 0 to gdk_window_clear_area they
+       should be calculated from the window size.
+
 2000-11-29  Alexander Larsson  <alexl@redhat.com>
 
        * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
index e52ac1b44c36a287f05b4843723dd3815a2a651d..eb64324102dfc2666e22e180497cc7ce1ee09883 100644 (file)
@@ -1,3 +1,9 @@
+2000-11-29  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
+       If you pass width or height == 0 to gdk_window_clear_area they
+       should be calculated from the window size.
+
 2000-11-29  Alexander Larsson  <alexl@redhat.com>
 
        * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
index 05a902f1dd135de03f60c2e9621730df0b4b0929..c5c416e835814ee7f4595100377fb35d51a833fa 100644 (file)
@@ -1012,6 +1012,12 @@ _gdk_windowing_window_clear_area (GdkWindow *window,
 
   bgpm = GDK_WINDOW_P (window)->bg_pixmap;
 
+  if (width == 0)
+    width = GDK_DRAWABLE_IMPL_FBDATA (window)->width - x;
+  
+  if (height == 0)
+    height = GDK_DRAWABLE_IMPL_FBDATA (window)->height - y;
+  
 #if 0  
   for (relto = window; bgpm == GDK_PARENT_RELATIVE_BG && relto; relto = (GdkWindow *)GDK_WINDOW_P(relto)->parent)
     bgpm = GDK_WINDOW_P (relto)->bg_pixmap;